#include <cstdio>
#include <cstring>
#include <cmath>
int main()
{
    int n;
    while (scanf("%d",&n)!=EOF)
    {
        int tmp;
        tmp=pow(2,n+1)-2;
        printf("%d\n",tmp);
    }
}
